package com.google.code.provadigital;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.ImageIcon;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class MontarProva extends JFrame {

	private JPanel contentPane;
	private JTextField textField_1;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MontarProva frame = new MontarProva();
					frame.setVisible(true);
					frame.setLocationRelativeTo(null);
				
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}



	/**
	 * Create the frame.
	 */
	public MontarProva() {
		setTitle("Cadastro de Professor");
		setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 929, 611);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		JPanel panel = new JPanel();
		panel.setBackground(new Color(127, 255, 0));
		contentPane.add(panel, BorderLayout.CENTER);
		panel.setLayout(null);
		
		JLabel lblNome = new JLabel("Elaborar Prova:");
		lblNome.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblNome.setBounds(33, 30, 115, 14);
		panel.add(lblNome);
		
		textField_1 = new JTextField();
		textField_1.setForeground(new Color(255, 255, 255));
		textField_1.setBackground(new Color(0, 0, 128));
		textField_1.setToolTipText("Digite seu nome aqui !");
		textField_1.setBounds(464, 55, 430, 419);
		panel.add(textField_1);
		textField_1.setColumns(10);
		
		JButton btnTelaPrincipal = new JButton("Tela Principal");
		btnTelaPrincipal.setFont(new Font("Tahoma", Font.BOLD, 11));
		btnTelaPrincipal.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
TelaPrincipal cl = new TelaPrincipal ();  
				
				cl.setVisible(true);
				dispose();
			}
		});
		btnTelaPrincipal.setForeground(new Color(0, 255, 0));
		btnTelaPrincipal.setBackground(new Color(0, 0, 128));
		btnTelaPrincipal.setBounds(691, 511, 115, 23);
		panel.add(btnTelaPrincipal);
		
		JLabel label = new JLabel("");
		label.setBounds(434, 295, 46, 14);
		panel.add(label);
		
		JButton btnNewButton = new JButton("Salvar");
		btnNewButton.setFont(new Font("Tahoma", Font.BOLD, 11));
		btnNewButton.setForeground(new Color(0, 255, 0));
		btnNewButton.setBackground(new Color(0, 0, 128));
		btnNewButton.setBounds(106, 511, 89, 23);
		panel.add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("Imprimir");
		btnNewButton_1.setFont(new Font("Tahoma", Font.BOLD, 11));
		btnNewButton_1.setBackground(new Color(0, 0, 128));
		btnNewButton_1.setForeground(new Color(0, 255, 0));
		btnNewButton_1.setBounds(301, 511, 89, 23);
		panel.add(btnNewButton_1);
		
		JButton btnNewButton_2 = new JButton("Remover");
		btnNewButton_2.setFont(new Font("Tahoma", Font.BOLD, 11));
		btnNewButton_2.setForeground(new Color(0, 255, 0));
		btnNewButton_2.setBackground(new Color(0, 0, 128));
		btnNewButton_2.setBounds(496, 511, 89, 23);
		panel.add(btnNewButton_2);
		
		textField = new JTextField();
		textField.setForeground(new Color(255, 255, 255));
		textField.setBackground(new Color(0, 0, 128));
		textField.setToolTipText("Digite aqui!!");
		textField.setBounds(17, 55, 430, 419);
		panel.add(textField);
		textField.setColumns(10);
		
		JLabel lblElaborarQuestes = new JLabel("Elaborar Quest\u00F5es:");
		lblElaborarQuestes.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblElaborarQuestes.setBounds(464, 30, 121, 14);
		panel.add(lblElaborarQuestes);
	}
}
